


$(function () {

    let orderId = _common_util.getURLParam('orderId')
    $.ajax({
        type    :   'POST',
        url     :   _common_util.getServerURL('order/alipay_trade_precreate'),
        dataType:'json',
        data    : {
            'orderId' : orderId
        },
        success:function (res) {
            console.log(res);


            let str = res.data.qrCode;
            let arr = str.split("\\");
            let qrcode  = "\\"+arr[arr.length-2]+"\\"+ arr[arr.length-1] ;
            $('#qrcode').attr('src',qrcode);



            // $('#order-content').append(total + seller + itemname);
        }
    })
})